package com.zhong.subject.application.convert;

import com.zhong.subject.application.dto.SubjectLabelDTO;
import com.zhong.subject.domain.bo.SubjectLabelBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper //此注解为mapstruct包下的
public interface SubjectLabelDTOConverter {
    SubjectLabelDTOConverter INSTANCE = Mappers.getMapper(SubjectLabelDTOConverter.class);
    SubjectLabelBO convertDTOToBO(SubjectLabelDTO subjectLabelDTO);
    List<SubjectLabelDTO> convertBoListToDTOList(List<SubjectLabelBO> subjectLabelBoList);
}
